package com.reliable.service.enums;

/**
 * 用户封禁状态枚举
 */
public enum ReliableBannedType {
    /**
     * 未封禁
     */
    NOT_BANNED(1L, "未封禁"),

    /**
     * 封禁
     */
    BANNED(2L, "封禁");

    private final Long code;
    private final String description;

    ReliableBannedType(Long code, String description) {
        this.code = code;
        this.description = description;
    }

    public Long getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    /**
     * 根据code获取枚举对象
     *
     * @param code 状态码
     * @return 对应的枚举对象
     */

}
